from pydantic import BaseModel, confloat


class SoundSynthesisRequest(BaseModel):
    text: str
    gender: str = '女'
    rate: confloat(ge=-1, le=3) = 0.1
    volume: confloat(ge=-1, le=1.5) = 0.1
